package com.genloong.flycloud.filecenter;

import com.alibaba.fastjson.JSONObject;
import com.genloong.flycloud.filecenter.api.NotifyApi;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
public class testController {

    @Resource
    NotifyApi notifyApi;


    @GetMapping(value = "test")
    public JSONObject test(){
        try {
            JSONObject oauth = notifyApi.oauth("ddd", "ddd");
            return oauth;
        }catch ( Exception e){
        e.printStackTrace();
        }
   return null;
    }
}
